package my.sample.memory;

import java.util.ArrayList;
import java.util.HashMap;

public class TestMemory {
	
	String name = "";

	public static void main(String[] args) {
		
		HashMap<String, ArrayList<String>> map = new HashMap<String, ArrayList<String>>();
		int i = 0;
		try {
			while ( true ) {
				ArrayList<String> list = null;
				for ( int j = 0; j < 1000; j++ ) {
					list = new ArrayList<String>();
					list.add("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
				}
				map.put(String.valueOf(i), list );
				i = i + 1;
				System.out.println(i);
			}
		} catch (Exception e) {
			while(true) {
			try {
				System.out.println("-");
				Thread.sleep(100000);
			} catch (InterruptedException e1) {
				e1.printStackTrace();
			}
			}
		}

	}

}